package com.tms.domain;

import java.util.Date;

/**
 * 报废记录类
 *
 * @author sxy
 */
public class Scrap {

    public Scrap() {
    }

    public Scrap(String description, int usedCount, Tool tool, User subPerson, User firstPerson,
                 User secondPerson, Date subTime, Date firstTime, Date secondTime, Status status) {
        this.description = description;
        this.usedCount = usedCount;
        this.tool = tool;
        this.subPerson = subPerson;
        this.firstPerson = firstPerson;
        this.secondPerson = secondPerson;
        this.subTime = subTime;
        this.firstTime = firstTime;
        this.secondTime = secondTime;
        this.status = status;
    }

    public Scrap(int id, String description, int usedCount, Tool tool, User subPerson, User firstPerson,
                 User secondPerson, Date subTime, Date firstTime, Date secondTime, Status status) {
        this.id = id;
        this.description = description;
        this.usedCount = usedCount;
        this.tool = tool;
        this.subPerson = subPerson;
        this.firstPerson = firstPerson;
        this.secondPerson = secondPerson;
        this.subTime = subTime;
        this.firstTime = firstTime;
        this.secondTime = secondTime;
        this.status = status;
    }

    public Scrap(int id, String description, int usedCount, Workcell workcell, Tool tool, User subPerson,
                 User firstPerson, User secondPerson, Date subTime, Date firstTime, Date secondTime, Status status) {
        this.id = id;
        this.description = description;
        this.usedCount = usedCount;
        this.workcell = workcell;
        this.tool = tool;
        this.subPerson = subPerson;
        this.firstPerson = firstPerson;
        this.secondPerson = secondPerson;
        this.subTime = subTime;
        this.firstTime = firstTime;
        this.secondTime = secondTime;
        this.status = status;
    }

    private int id;

    private String description;

    private int usedCount;

    private Workcell workcell;

    private Tool tool;

    private User subPerson;

    private User firstPerson;

    private User secondPerson;

    private Date subTime;

    private Date firstTime;

    private Date secondTime;

    private Status status;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getUsedCount() {
        return usedCount;
    }

    public void setUsedCount(int usedCount) {
        this.usedCount = usedCount;
    }

    public Workcell getWorkcell() {
        return workcell;
    }

    public void setWorkcell(Workcell workcell) {
        this.workcell = workcell;
    }

    public Tool getTool() {
        return tool;
    }

    public void setTool(Tool tool) {
        this.tool = tool;
    }

    public User getSubPerson() {
        return subPerson;
    }

    public void setSubPerson(User subPerson) {
        this.subPerson = subPerson;
    }

    public User getFirstPerson() {
        return firstPerson;
    }

    public void setFirstPerson(User firstPerson) {
        this.firstPerson = firstPerson;
    }

    public User getSecondPerson() {
        return secondPerson;
    }

    public void setSecondPerson(User secondPerson) {
        this.secondPerson = secondPerson;
    }

    public Date getSubTime() {
        return subTime;
    }

    public void setSubTime(Date subTime) {
        this.subTime = subTime;
    }

    public Date getFirstTime() {
        return firstTime;
    }

    public void setFirstTime(Date firstTime) {
        this.firstTime = firstTime;
    }

    public Date getSecondTime() {
        return secondTime;
    }

    public void setSecondTime(Date secondTime) {
        this.secondTime = secondTime;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }
}